<?php
/* @var $this RampController */
/* @var $model Ramp */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'ramp-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'provided'); ?>
		<?php echo $form->textField($model,'provided'); ?>
		<?php echo $form->error($model,'provided'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'type'); ?>
		<?php echo $form->dropDownlist($model, 'type',$model->getType() ,
		array('prompt' => 'Select a Type',)); ?>
		<?php echo $form->error($model,'type'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ramp_width'); ?>
		<?php echo $form->textField($model,'ramp_width',array('size'=>11,'maxlength'=>11)); ?>
		<?php echo $form->error($model,'ramp_width'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'units_of_measurement_of_ramp_width'); ?>
		<?php echo $form->dropDownlist($model, 'units_of_measurement_of_ramp_width',$model->getMeasurementb() ,
		array('prompt' => 'Select a Measurement',)); ?>
		<?php echo $form->error($model,'units_of_measurement_of_ramp_width'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'class'); ?>
		<?php echo $form->textArea($model,'class',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'class'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'railing_provided'); ?>
		<?php echo $form->textField($model,'railing_provided'); ?>
		<?php echo $form->error($model,'railing_provided'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'height_from_the_floor'); ?>
		<?php echo $form->textField($model,'height_from_the_floor',array('size'=>11,'maxlength'=>11)); ?>
		<?php echo $form->error($model,'height_from_the_floor'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'units_of_measurement_of_the_height_from_the_floor'); ?>
		<?php echo $form->dropDownlist($model, 'units_of_measurement_of_the_height_from_the_floor',$model->getMeasurement() ,
		array('prompt' => 'Select a Measurement',)); ?>
		<?php echo $form->error($model,'units_of_measurement_of_the_height_from_the_floor'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'enclosure_provided'); ?>
		<?php echo $form->textField($model,'enclosure_provided'); ?>
		<?php echo $form->error($model,'enclosure_provided'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'enclosure_construction'); ?>
		<?php echo $form->textArea($model,'enclosure_construction',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'enclosure_construction'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'fire_door_provided'); ?>
		<?php echo $form->textField($model,'fire_door_provided'); ?>
		<?php echo $form->error($model,'fire_door_provided'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'fd_width'); ?>
		<?php echo $form->textField($model,'fd_width',array('size'=>11,'maxlength'=>11)); ?>
		<?php echo $form->error($model,'fd_width'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'units_of_measurement_of_the_fd_width'); ?>
	<?php echo $form->dropDownlist($model, 'units_of_measurement_of_the_fd_width',$model->getMeasurementa() ,
		array('prompt' => 'Select a Measurement',)); ?>
		<?php echo $form->error($model,'units_of_measurement_of_the_fd_width'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'fire_door_construction'); ?>
		<?php echo $form->textArea($model,'fire_door_construction',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'fire_door_construction'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'door_equipped_with_self_closing_device'); ?>
		<?php echo $form->textField($model,'door_equipped_with_self_closing_device'); ?>
		<?php echo $form->error($model,'door_equipped_with_self_closing_device'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'door_with_proper_rating'); ?>
		<?php echo $form->textField($model,'door_with_proper_rating'); ?>
		<?php echo $form->error($model,'door_with_proper_rating'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'door_provided_with_vision_panel'); ?>
		<?php echo $form->textField($model,'door_provided_with_vision_panel'); ?>
		<?php echo $form->error($model,'door_provided_with_vision_panel'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'if_yes_made_of'); ?>
		<?php echo $form->textArea($model,'if_yes_made_of',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'if_yes_made_of'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'door_swing_in_the_direction_of_exit_travel'); ?>
		<?php echo $form->textField($model,'door_swing_in_the_direction_of_exit_travel'); ?>
		<?php echo $form->error($model,'door_swing_in_the_direction_of_exit_travel'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'any_obstruction'); ?>
		<?php echo $form->textField($model,'any_obstruction'); ?>
		<?php echo $form->error($model,'any_obstruction'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'termination_or_discharge_of_exit'); ?>
		<?php echo $form->textArea($model,'termination_or_discharge_of_exit',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'termination_or_discharge_of_exit'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'exit_detail_id'); ?>
		<?php echo $form->textField($model,'exit_detail_id'); ?>
		<?php echo $form->error($model,'exit_detail_id'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->